/**************************************************************************/
/*                                                                        */
/* Copyright (c) Sinoembed Technology Co.,Ltd.           */
/*  */
/*                                                                        */
/*                                                                        */
/*    created:    2012-6-27                                             */ 
/*    filename:   CSinoembedPuzzleWnd.h                                          */ 
/*    author:     Derek Huang                                                  */  
/*    purpose:                                                            */ 
/*                                                                        */
/* ************************************************************************/

#ifndef __CE_SPLASH_WND_H__
#define __CE_SPLASH_WND_H__
#include <mzfc_inc.h>
//#include "iUiButton.h"
#include "SHIImaging.h"

#include "TBInvokeInterface.h"
#define STARTUP_TIME_ID		(301)

class CSplashWnd : public CMzWndEx
{
	MZ_DECLARE_DYNAMIC(CSplashWnd);
public:
	CSplashWnd();
	virtual ~CSplashWnd();
	virtual void PaintWin(HDC hdc, RECT* prcUpdate /* = NULL */);
//	virtual  void OnMzCommand(WPARAM wParam, LPARAM lParam);
	virtual LRESULT MzDefWndProc(UINT message, WPARAM wParam, LPARAM lParam);
//	virtual void OnLButtonDown(UINT fwKeys, int xPos, int yPos);
//	virtual void OnLButtonUp(UINT fwKeys, int xPos, int yPos);
	void DestroyWindow();
	void OnExit();
private:
protected:
	virtual BOOL InitImages();
	virtual void DeleteImages();

	virtual void DrawBackground(HDC hdc);
	virtual BOOL OnInitDialog();
	virtual void OnTimer(UINT_PTR nIDEvent);
	virtual void DrawProgress(HDC hdc, RECT* prcUpdate);
	void SetTimerOFF()
	{
		::KillTimer(m_hWnd, STARTUP_TIME_ID);
	}
protected:
	SHIImaging		m_StartupBG;
	SHIImaging		m_StartupLogoImage;
	SHIImaging		m_StartupPopupImage;
	SHIImaging		m_StartupDotImage;
public:
//	static void APP_MPEG_CbkFunc(PROTOCAL_INFO, BYTE);
#ifdef MERGER_APP_TO_SHELL
	BOOL Create();
#endif
public:
	int			m_nCount;
	RECT		m_nProgressRc;
	HDC			m_hBakDC;
	HBITMAP		m_hBitmapBakDC;

};


#endif